package com.feri.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feri.shop.dto.OrderDetailDto;
import com.feri.shop.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface OrderDao extends BaseMapper<Order> {
    @Update("update t_order set flag=#{flag} where id=#{id}")
    int updateFlag(@Param("id")long id,@Param("flag") int flag);

    OrderDetailDto selectMy(long oid);
}
